import { Feature, MultiPolygon, Polygon } from '@turf/turf';

export const polygonList: Feature<Polygon>[] = [
  {
    type: 'Feature',
    properties: {},
    geometry: {
      type: 'Polygon',
      coordinates: [
        [
          [120.10116577148436, 30.292867742612255],
          [120.08949279785156, 30.216058476325074],
          [120.15781402587892, 30.207751175495517],
          [120.17051696777344, 30.277154904692335],
          [120.10597229003906, 30.325174912575307],
          [120.10116577148436, 30.292867742612255],
        ],
      ],
    },
  },
  {
    type: 'Feature',
    properties: {},
    geometry: {
      type: 'Polygon',
      coordinates: [
        [
          [120.02357482910155, 30.24839093066276],
          [120.06889343261717, 30.24839093066276],
          [120.06889343261717, 30.29790717639933],
          [120.02357482910155, 30.29790717639933],
          [120.02357482910155, 30.24839093066276],
        ],
      ],
    },
  },
  {
    type: 'Feature',
    properties: {},
    geometry: {
      type: 'Polygon',
      coordinates: [
        [
          [120.18287658691406, 30.316284093102404],
          [120.18424987792969, 30.285159872426014],
          [120.20450592041017, 30.275968928008236],
          [120.20862579345703, 30.2907926063742],
          [120.18287658691406, 30.316284093102404],
        ],
      ],
    },
  },
];

export const multiPolygonList: Feature<MultiPolygon>[] = [
  {
    type: 'Feature',
    properties: {},
    geometry: {
      type: 'MultiPolygon',
      coordinates: [
        [
          [
            [120.18287658691406, 30.316284093102404],
            [120.18424987792969, 30.285159872426014],
            [120.20450592041017, 30.275968928008236],
            [120.20862579345703, 30.2907926063742],
            [120.18287658691406, 30.316284093102404],
          ],
        ],
        [
          [
            [120.02357482910155, 30.24839093066276],
            [120.06889343261717, 30.24839093066276],
            [120.06889343261717, 30.29790717639933],
            [120.02357482910155, 30.29790717639933],
            [120.02357482910155, 30.24839093066276],
          ],
        ],
        [
          [
            [120.10116577148436, 30.292867742612255],
            [120.08949279785156, 30.216058476325074],
            [120.15781402587892, 30.207751175495517],
            [120.17051696777344, 30.277154904692335],
            [120.10597229003906, 30.325174912575307],
            [120.10116577148436, 30.292867742612255],
          ],
        ],
      ],
    },
  },
];
